package 补充.多线程;
class MyRunnable implements Runnable {
    public void run() {
        for (int i = 0; i < 10; i++) {
            System.out.println("音乐开始"+i);
        }
    }
}
public class 实现Runnable类 {
    public static void main(String[] args) {
        Thread thread = new Thread(new MyRunnable());
        thread.start();
        for (int i = 0; i < 30; i++) {
            System.out.println("游戏开始"+i);
        }
    }
}
